﻿[#include "../include/html_header.html"/]
<script language="JavaScript" src="${root}/js/category.js" type="text/javascript"></script>
<script language="JavaScript" src="${root}/js/img.js" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">
    function getTableForm() {
        return document.getElementById("tableForm");
    }
    function _gotoPage(pageNo, urlp, urls) {
        try {
            var tableForm = getTableForm();
            tableForm.action = urlp + "_" + pageNo + urls;
            tableForm.onsubmit = null;
            tableForm.submit();
        } catch (e) {
            alert('_gotoPage(pageNo)方法出错');
        }
    }

</script>

</head>
<body>
[#include "../include/html_header_top.html"/]

<div class="am-g am-g-fixed">
    <div class="am-cf admin-main">
        <!-- sidebar start -->
        [#include "classify_side.html"/]
        <div class="admin-content">

       <div class="am-u-sm-12">
        [#include "classify_search.html"/]
        <form id="tableForm" action="${category.url!}" method="get" class="am-form">
            [@shop_ProductPageChannel categoryId=category.id brandId=brandId names=names values=values count=pageSize
            pageNo=pageNo orderBy=orderBy]
            <div class="am-g am-g-fixed" >

                <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default">
                    [#list tag_pagination.list as product]
                    <li>
                        <div class="am-gallery-item">
                        <a class="product_pic" href="${product.url!}" target="_blank">
                            [#if product.productExt.coverImg??]
                            <img src="${product.productExt.coverImg!global.defImg}" title="${product.name!}" width="148"
                                 height="150"/>
                            [#else]
                            <img src="${global.defImg}" title="${product.name!}" width="160" height="160"/>
                            [/#if]
                        </a>
                        </div>
                        <h3 class="am-gallery-title"> <a class="title" href="${product.url!}" target="_blank" title="${product.name!}">
                            [@text_cut s=product.name len='8' append=''/]<em></em></a>
                        </h3>
                        <div class="am-gallery-desc">
                            <strong>
                                [#if product.category.colorsize]
                                [#list product.fashions as fashion]
                                [#if fashion.isDefault]
                                ¥${fashion.salePrice!0}
                                [/#if]
                                [/#list]
                                [#else]
                                ¥${product.salePrice!0}
                                [/#if]
                            </strong>
                            <del>
                                [#if product.category.colorsize]
                                [#list product.fashions as fashion]
                                [#if fashion.isDefault]
                                ¥${fashion.marketPrice!0}
                                [/#if]
                                [/#list]
                                [#else]
                                ¥${product.marketPrice!0}
                                [/#if]
                            </del>
                       </div>
                        <p align="center">
                            <a class="am-btn am-btn-danger" href="${product.url}" target="_blank"> 立即购买</a>
                        </p>

                    </li>

                    [/#list]
                </ul>
            </div>
            [@pagination_style sysPage='2'/]
            [/@shop_ProductPageChannel]
            <div id="hisAssociated" style="clear:both;"></div>
        </form>
    </div>
</div>
</div>
    </div>
[#include "../include/footer.html"/]
</body>
</html>